package com.jidong.test_springboot.entity;

import java.io.Serializable;

import org.springframework.beans.factory.annotation.Value;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value="t_dept")  //让我们的实体和数据库中的表对应
public class Dept implements Serializable{//因为要放到redis里，所以要序列化
	@TableId
	private int id;
	@TableField(value="deptNo")
	private String deptNo;
	@TableField(value="deptName")
	private String deptName;
	@TableField(value="deptLeader")
	private String deptLeader;
	@TableField(value="is_parent")
	private String isParent;
	@TableField(value="parent_id")
	private int parentId;
	
}
